//
//  UIButton+CountDown.h
//
//  Created by LiXiaoFeng on 14/12/29.
//  Copyright © 2014年 LiXiaoFeng. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIButton (CountDown)

/**
 wsender.enabled = false;
 [wsender xx_startCountDown:120 showText:@" %zds后可重发 " complete:^{
 wsender.enabled = YES;
 [wsender setTitle:@" 重新发送 " forState:UIControlStateNormal];
 }];
 */
/// 开始倒计时
-(void)xx_startCountDown:(NSInteger)count showText:(NSString *)text complete:(void (^)(UIButton *buttom))complete;

/// 是否正在倒计时 以及 需要停止倒计时(set = YES)
@property (nonatomic, assign) BOOL xx_endCountDown;


@end
